package com.ygl.strategy.opentracing.context;

import io.opentracing.Span;

/**
 * @Author yanggld
 * @Date 2019/12/19-16:57
 * @Description
 */
public class StrategyOpentracingContextManager {

	public Object getContext() {
		return StrategyOpentracingContext.getCurrentContext().getSpan();
	}

	public void setContext(Object context) {
		StrategyOpentracingContext.getCurrentContext().setSpan((Span) context);
	}

	public void clearContext() {
		StrategyOpentracingContext.clearCurrentContext();
	}
}
